<template>
  <div id="bdMap">
    <van-nav-bar fixed title="地图找房">
      <template #left>
        <van-icon color="#fff" name="arrow-left" @click="$router.back()" />
      </template>
    </van-nav-bar>
    <div class="box-container">
      <my-map :city="center" />
    </div>
  </div>
</template>

<script>
import MyMap from '@/components/MyMap.vue'
export default {
  data () {
    return {
      center: null
    }
  },
  components: { MyMap },
  mounted () {},

  created () {
    this.center = this.$store.state.currentCity
  },

  methods: {}
}
</script>

<style scoped lang="less">
#bdMap {
  width: 100%;
  height: 100%;
  .box-container {
    padding-top: 46px;
    width: 100%;
    height: 620px;
  }
}
</style>
